
public class Boil extends Action {
    public Boil(Predicate p, int duration) {
        super("Boil", duration);

        addPreconditions(p);
        addToAddList(new Boiled(p, duration));
        addToDeleteList(p);
        addToResources(Resource.POT);
        addToResources(Resource.STOVE_PLATE);	
    }

    public Boil() {
        super("Boil", 0);

        addToAddList(new Boiled());
        addToResources(Resource.POT);
        addToResources(Resource.STOVE_PLATE);
    }
}